import request from "@/utils/request";

export function getTaxRates(paramters) {
  return request({
    url: "api/v1/taxrates",
    method: "get",
    params: paramters,
    basicDataServer: true,
  });
}


export function getTaxRate(id) {
  return request({
    url: "api/v1/taxrates/"+id,
    method: "get",
    basicDataServer: true,
  });
}

export function addTaxRate(data) {
  return request({
    url: "api/v1/taxrates",
    method: "post",
    data: data,
    basicDataServer: true,
  });
}

export function updateTaxRate(data) {
  return request({
    url: "api/v1/taxrates",
    method: "put",
    data: data,
    basicDataServer: true,
  });
}

export function deleteTaxRate(id) {
  return request({
    url: "api/v1/taxrates/" + id,
    method: "delete",
    basicDataServer: true,
  });
}